import time,random
import requests

def get_data():
    url = 'https://lop-proxy.jd.com/search/fusionOptimizationFindWaybillOrdersByReceiveMobile'
    headers = {
        'accept': 'application/json, text/plain, */*',
        'source-client': '1',
        'x-requested-with': 'XMLHttpRequest',
        'jexpress-trace-id': 'ndk9paga88xnaw45',
        'content-type': 'application/json;charset=utf-8',
        'event-id': 'orwrogpgvmn4lwjp',
        'user-agent': 'Mozilla/5.0 (Linux; Android 7.1.2; TAS-AN00 Build/TAS-AN00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/75.0.3770.143 Mobile Safari/537.36 MMWEBID/3766 MicroMessenger/8.0.3.1880(0x28000334) Process/appbrand0 WeChat/arm32 Weixin NetType/WIFI Language/zh_CN ABI/arm32 MiniProgramEnv/android',
        'clientinfo': '{"appName":"c2c","client":"m"}',
        'accept-encoding': 'gzip,compress,br,deflate',
        'lop-dn': 'logistics-mrd.jd.com',
        'charset': 'utf-8',
        'version': '1626399756000',
        'biz-type': 'service-monitor',
        'appparams': '{"appid":158,"ticket_type":"m"}',
        'jexpress-report-time': '1627004094890',
        'access': 'WX-XCX',
        'app-key': 'jexpress',
        'referer': 'https://servicewechat.com/wx73247c7819d61796/312/page-frame.html',
        'cookie': 'pt_key=AAJg-i4eADCzvPkt1QHVb8chitYzT750vIXAeN9l9Z5lhG8F_abHD_IndMBRplrya28YwT4xjfY; pin=%E5%90%9B%E4%B8%B0%E4%BB%93%E5%BA%93;'
        # e10oAB9dBLaSDC0YXNjnjTY0Zu1YFrVkJ0SsFh9xVKP2l8IjeMBOZGQ4B9ljV6kr
        # AAJg-hyDADABzQH79SFfWyuSTv9qUeESkJLRYPL0LY5r3RhdeXlTQPAa5YzmXO6hk8EdER-LMOA
        # K6XZPLHPI4ZJBFAWG6NJBUFMB4LZETIDVH2VQODRTSD34N6CYVCVMDX6IK4P5NHQZ6DMOPRM2KVEEEHDB5SI2KVXUI
    }
    data ='[{"entrance":"WX-XCX","client":"1","apiVersion":"1.0.0","source":"4","productType":"7","userPin":"$cooMrdGatewayUid$","page":{"curPage":1,"pageSize":10}}]'
    res = requests.post(url,headers=headers,data=data)
    print(res.text)

if __name__ == "__main__":
    get_data()